package operation.constant;

import java.util.HashMap;
import java.util.Map;

public final class FileIOConstant {
    public static final Map<String, String> FILE_NAME_MAP = new HashMap<>();
    public final static String FILE_TYPE_XLS = "xls";
    public final static String FILE_TYPE_XLSX = "xlsx";
    public final static String DATA_IMPORT_FILE_TYPE_CHECK_ITEM = "checkItem";
    public final static String DATA_IMPORT_FILE_TYPE_PRODUCT = "product";
    public final static String DATA_IMPORT_FILE_TYPE_WORK_ORDER = "workOrder";
    public final static String DATA_IMPORT_FILE_TYPE_FIXTURE_CATEGORY = "fixtureCategory";
    public final static String DATA_IMPORT_FILE_TYPE_FIXTURE = "fixture";
    public final static String DATA_IMPORT_FILE_TYPE_FIXTURE_BASE_MACHINE = "fixtureBaseMachine";
    public final static String DATA_IMPORT_FILE_TYPE_STORAGE_FIXTURE = "storageFixture";
    public final static String DATA_IMPORT_FILE_TYPE_FIXTURE_BASE_BOARD = "fixtureBaseBoard";
    /**
     * statistic
     */
    public final static String IMPORT_DATA_FILE_TYPE_DAILY = "daily";
    /**
     * 工单Excel sheet名称（即制程类别） SMT、THT、手焊、测试、三防漆、三防漆计划、通用
     */
    public final static String WORK_ORDER_EXCEL_SHEET_SMT = "SMT";
    public final static String WORK_ORDER_EXCEL_SHEET_THT = "THT";
    public final static String WORK_ORDER_EXCEL_SHEET_TEST = "测试";
    public final static String WORK_ORDER_EXCEL_SHEET_MANUAL_WELDING = "手焊";
    public final static String WORK_ORDER_EXCEL_SHEET_THREE_ANTI_PAINT = "三防漆";
    public final static String WORK_ORDER_EXCEL_SHEET_THREE_ANTI_PAINT_PLAN = "三防漆计划";
    public final static String WORK_ORDER_EXCEL_SHEET_GENERAL = "通用";

    static {
        FILE_NAME_MAP.put("checkItem-zh-CN", "检验项目数据.xlsx");
        FILE_NAME_MAP.put("checkItem-zh-TW", "檢驗項目數據.xlsx");
        FILE_NAME_MAP.put("checkItem-ja", "検査項目データ.xlsx");
        FILE_NAME_MAP.put("checkItem-en", "Check item data.xlsx");
        FILE_NAME_MAP.put("product-zh-CN", "产品数据.xlsx");
        FILE_NAME_MAP.put("product-zh-TW", "產品數據.xlsx");
        FILE_NAME_MAP.put("product-en", "Product Data.xlsx");
        FILE_NAME_MAP.put("product-ja", "製品データ.xlsx");
        FILE_NAME_MAP.put("workOrder-zh-CN", "工单数据.xlsx");
        FILE_NAME_MAP.put("workOrder-zh-TW", "工單數據.xlsx");
        FILE_NAME_MAP.put("workOrder-en", "Work Order Data.xlsx");
        FILE_NAME_MAP.put("workOrder-ja", "作業指示書データ.xlsx");

        FILE_NAME_MAP.put("fixtureCategory-zh-CN", "工装夹治具类别主数据.xlsx");
        FILE_NAME_MAP.put("fixtureCategory-zh-TW", "工裝夾治具類別主數據.xlsx");
        FILE_NAME_MAP.put("fixtureCategory-en", "Fixture Category Data.xlsx");
        FILE_NAME_MAP.put("fixtureCategory-ja", "治具のカテゴリーデータ.xlsx");

        FILE_NAME_MAP.put("fixture-zh-CN", "工装夹治具数据.xlsx");
        FILE_NAME_MAP.put("fixture-zh-TW", "工裝夾治具數據.xlsx");
        FILE_NAME_MAP.put("fixture-en", "Fixture Data.xlsx");
        FILE_NAME_MAP.put("fixture-ja", "治具データ.xlsx");

        FILE_NAME_MAP.put("storageFixture-zh-CN", "工装夹治具数据.xlsx");
        FILE_NAME_MAP.put("storageFixture-zh-TW", "工裝夾治具數據.xlsx");
        FILE_NAME_MAP.put("storageFixture-en", "Fixture Data.xlsx");
        FILE_NAME_MAP.put("storageFixture-ja", "治具データ.xlsx");

        FILE_NAME_MAP.put("fixtureBaseMachine-zh-CN", "物料主数据（整机）.xlsx");
        FILE_NAME_MAP.put("fixtureBaseMachine-zh-TW", "物料主數據（整機）.xlsx");
        FILE_NAME_MAP.put("fixtureBaseMachine-en", "Material Master Data(machine).xlsx");
        FILE_NAME_MAP.put("fixtureBaseMachine-ja", "材料マスタ（完全なマシン）.xlsx");

        FILE_NAME_MAP.put("fixtureBaseBoard-zh-CN", "物料主数据（单板）.xlsx");
        FILE_NAME_MAP.put("fixtureBaseBoard-zh-TW", "物料主數據（單板）.xlsx");
        FILE_NAME_MAP.put("fixtureBaseBoard-en", "Material Master Data(board).xlsx");
        FILE_NAME_MAP.put("fixtureBaseBoard-ja", "材料マスタ（ボード）.xlsx");
    }

    private FileIOConstant() {
    }
}
